package com.yonyou.cyxdms.sysAuth.service.entity.userorgsource;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import java.io.Serializable;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtan
 * @since 2020-07-07
 */
@TableName("tr_userorg_source")
public class UserorgSourcePO extends DMSBasePO<UserorgSourcePO> {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(value = "ID", type = IdType.AUTO)
	private Long id;

	/**
	 * 厂端人员组织ID
	 */
	@TableField("USER_ORG_ID")
	private String userOrgId;

	/**
	 * 线索来源ID集合
	 */
	@TableField("CLUE_SOURCEIDS")
	private String clueSourceids;

	/**
	 * 线索来源名称集合
	 */
	@TableField("CLUE_SOURCENAMES")
	private String clueSourceNames;



	public UserorgSourcePO() {
		super();
	}

	public String getClueSourceNames() {
		return clueSourceNames;
	}

	public void setClueSourceNames(String clueSourceNames) {
		this.clueSourceNames = clueSourceNames;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserOrgId() {
		return userOrgId;
	}

	public void setUserOrgId(String userOrgId) {
		this.userOrgId = userOrgId;
	}

	public String getClueSourceids() {
		return clueSourceids;
	}

	public void setClueSourceids(String clueSourceids) {
		this.clueSourceids = clueSourceids;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserorgSourcePO{" +
		"id=" + id +
		", userOrgId=" + userOrgId +
		", clueSourceids=" + clueSourceids +
		"}";
	}

	/**
	 * 将PO 信息转化为DTO
	 *
	 * @param dto 需要进行转换的dto
	 * @author zhangtan
	 * @since 2020-07-07
	 */
	protected <T extends BaseDTO> void transDtoToPo(T dto) {
		BeanMapperUtil.copyProperties(this, dto, "id");
	}


}
